@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './sidebar.scss';

* {
  margin: 0;
  padding: 0
}

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  outline: none;
  text-decoration: none;
}

div:focus {
  outline: none;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

//main-container全局样式
.app-main {
  min-height: 100%;
  background: #f9f9f9;
  font-size: 12px;
}

.main-container {
  background: #f9f9f9;
}
// 登录
.login_box {
  .form_box {
    input {
      height: 45px;width: 100%;line-height: 45px;border: 0 none;border-bottom: 1px solid #D9D9D9;color: #999;font-size: 16px;background-color: transparent;border-radius: 0;
      &:focus{border-bottom: 1px solid #5097D5;}
    }
    .el-input__prefix i{line-height: 45px;}
    .submit-btn {
      margin-top: 40px;background-color: #5097D5;color: #fff;height: 50px;font-size: 16px;border-radius: 5px;
      &:hover{transition: box-shadow .3s;box-shadow: 0 3px 5px -1px rgba(0,0,0,.2), 0 6px 10px 0 rgba(0,0,0,.14), 0 1px 18px 0 rgba(0,0,0,.12);}
    }
  }

}

.navbar {
  background: #fff;
}

//card-icon-color
.card-icon-blue{
  background:linear-gradient(60deg,#26c6da,#00acc1);
}
.card-icon-yellow{
  background:linear-gradient(60deg, rgb(255, 167, 38), rgb(251, 140, 0));
}
.card-icon-red{
  background:linear-gradient(60deg, rgb(239, 83, 80), rgb(229, 57, 53))
}
.card-icon-green{
  background:linear-gradient(60deg,#66bb6a,#43a047)
}


//element全局样式修改~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~·
.el-button--default {
  color: #fff;
  background-color: #409444;
  border-color: #409444;
}

.el-button--default:hover {
  color: #fff;
  background-color: #409444;
  border-color: #409444;
  box-shadow: #409444 0 0 5px;
}

.el-button--default:focus {
  background-color: #409444;
  border-color: #409444;
}

.el-button--success {
  color: #fff;
  background-color: #128F87;
  border-color: #128F87;
}

.el-button--success:hover {
  background-color: #128F87;
  border-color: #128F87;
  box-shadow: #128F87 0 0 5px;
}

.el-button--success:focus {
  background-color: #128F87;
  border-color: #128F87;
}
//input全局样式调整
.el-select .el-input.is-focus .el-input__inner{
  border: none;
}
.el-form-item__label {
  font-size: 12px;
  font-weight: 100;
  padding: 0 3px;
  min-width: 40px;
}
.el-select,
.el-input {
  & .el-input__inner{
    border: none;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    padding-left: 3px;
    padding-right: 3px;
  }
  input {
     background-image: linear-gradient(0deg,#9c27b0 2px,rgba(156,39,176,0) 0),linear-gradient(0deg,#d2d2d2 1px,hsla(0,0%,82%,0) 0);
     background: no-repeat bottom,50% calc(100% - 1px);
     background-size: 0 100%,100% 100%;
     transition: background 0s ease-out;
  }
  input:focus {
    background-image: linear-gradient(0deg,#9c27b0 2px,rgba(156,39,176,0) 0),linear-gradient(0deg,#d2d2d2 1px,hsla(0,0%,82%,0) 0);
    background-size: 100% 100%,100% 100%;
    transition-duration: .3s;
    box-shadow: none;
  }
}
.el-date-editor{
  & .el-input__inner{
    padding-left: 28px !important;
  }
}

//表格上方 右侧筛选条件样式
.filter-right-box {
  float: right;
  .filter-right-box-content {
    .el-form-item__label {
      font-size: 12px;
      font-weight: 100;
      padding: 0 5px 0 3px;
      min-width: 40px;
    }
    .el-input {
      width: 80px;
    }
  }
}


//跳一下的那个条件筛选样式
.filter-box .el-input--suffix {
  border: none;
}

.filter-box .el-input--suffix .el-input__inner {
  border: none;
  border-radius: 0%;
  border-bottom: 1px solid #ddd;
}

//表单里面的样式
.commonForm{
  .el-form-item__label {
    font-weight: 100;
    font-size: 12px;
  }
  .el-form-item__content input {
    border: none;
    border-radius: 0%;
    border-bottom: 1px solid #eee;
  }
  //表单内 日期范围样式
  .el-range-editor{
    width:100%;
    border: none;
    border-radius: 0%;
    border-bottom: 1px solid #eee;
    .el-range__icon{
      font-size:12px;
    }
    .el-range-input{
      width:70px;
      border:none;
    }
  }
  //行内排列
  .inline{
    //表单内 radio样式
    .el-radio-group{
      padding:6px 0;
      display:flex;
      justify-content:space-around;
      span{
        font-size:12px;
      }
      .el-radio{
        margin-right:5px;
      }
      .el-radio:last-child{
        margin-right:0;
      }
    }
    //表单内 checkbox样式
    .el-checkbox-group{
      padding:1px 0;
      display:flex;
      justify-content:space-around;
      span{
        font-size:12px;
      }
      .el-checkbox{
        margin-right:5px;
      }
      .el-checkbox:last-child{
        margin-right:0;
      }
    }
  }
  //列排布
  .column{
    //表单内 radio样式
    .el-radio-group{
      padding:6px 0;
      span{
        font-size:12px;
      }
      .el-radio{
        margin-bottom:20px;
        display:block;
      }
      .el-radio:last-child{
        margin-bottom:0px;
      }
    }
    //表单内 checkbox样式
    .el-checkbox-group{
      padding:1px 0;
      display:block;
      span{
        font-size:12px;
      }
      .el-checkbox{
        // margin-right:5px;
      }
    }
  }
  .no-border textarea{
    border:none;
    border-radius:0;
    border-bottom:1px solid #eee;
  }
}


//dialog
.el-custom-dialog {
  width: 1100px;
  height: 75%;
  background: #f6f6f6;

  .el-dialog__header {
    background: #fff;
    height: 50px;

    span {
      color: #fff;
      font-size: 14px;
      width: calc(100% - 40px);
      height: 50px;
      line-height: 50px;
      border-radius: 5px;
      background: linear-gradient(135deg, #5097d5 0%, #106699 100%);
      box-shadow: 0px 2px 8px 0px rgba(16, 102, 153, 0.5);
      position: absolute;
      top: -20px;
      left: 20px;
      text-indent: 20px;
    }

    .el-dialog__headerbtn {
      right: 40px;
      top: 0;
      font-size: 14px;

      i {
        color: #fff;
      }
    }
  }

  .el-dialog__body {
    height: calc(100% - 50px);
    overflow: auto;
    // padding-top: 30px;
  }
}

//el-message-box 提示框
.el-message-box{
  width: 230px;
  height: 154px;
  overflow: visible;
  .el-message-box__header{
    background: linear-gradient(135deg,rgba(80,151,213,1) 0%,rgba(16,102,153,1) 100%);
    box-shadow: 0px 2px 8px 0px rgba(16,102,153,0.5);
    margin: -15px 15px 15px;
    border: 0 none;
    border-radius: 3px;
    .el-message-box__title{
      span{
        color: #fff;
        font-size:14px;
      }
    }
  }
  .el-message-box__content{
    padding: 20px;
  }
  .el-message-box__btns{
    text-align: right;
    //取消
    .el-button--default{
      background: #2e8ded;
      border-color: #4898d5;
      color: #fff;
      height: 28px;
      line-height: 1;
    }
    //确定
    .el-button.el-button--primary{
      background: #2e8ded;
      border-color: #4898d5;
      color: #fff;
      height: 28px;
      line-height: 1;
    }
  }
}

//tree
.tree span {
  font-size: 12px;
}